import java.io.File;
import java.io.*;
public class Example29{
    public static void main(String[] args) throws Exception{
       File file = new File("D:\\a");
       if(file.exists()){
           System.out.println(file.delete());
       }
    }
}



